// 机器人无敌插件

string author = "Live";
string pluginName = "BotGod 机器人无敌插件";
string version = "1.0";

// 插件初始化
void OnPluginInit()
{
	// 设置插件信息
	PluginData::SetAuthor(author);
	PluginData::SetName(pluginName);
	PluginData::SetVersion(version);

	// 提示
	ThePresident.InfoFeed("插件:"+pluginName+"| 版本:"+version+"| 作者:"+author,false);

    Events::Player::OnPlayerDamagedPre.Hook( @OnPlayerDamagedPre );
    
}

HookReturnCode OnPlayerDamagedPre(CTerrorPlayer@ pPlayer, CTakeDamageInfo &in DamageInfo)
{
    if(pPlayer.IsBot()){
        return HOOK_HANDLED;
    }
	return HOOK_CONTINUE;
}
